type Personr = {
    name: string,
    friend?: {
        name: string,
        age?: number;
        other?: {
            aa: boolean,
            bb: string
        }
    }
}

const info: Personr = {
    name: '33',
    friend: {
        name: '44'
    }
}


console.log(info.name);
console.log(info.friend?.age);
console.log(info.friend?.name);
console.log(info.friend?.other?.aa);
